package com.atu.atugra.constant;
public enum AppHttpCodeEnum {
    ERROR(10000,"未知原因"),

    SUCCESS(200,"操作成功"),
    //登录异常
    JWT_ERROR(10101, "Jwt过期或失效"),
    USER_EXIST(10102, "用户名已经存在"),
    LOGIN_ERROR(10103, "用户名或密码错误"),

    INSERT_FAILED(10104, "插入失败"),
    UPDATE_FAILED(10105, "更新失败"),
    DELETE_FAILED(10106, "删除失败"),
    ;

    int code;
    String msg;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    AppHttpCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}